﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace black_screen_mode_server.Models
{
    public class QueryEventValues
    {
        public string Action { get; set; }
        public string Source { get; set; }
        public int Category { get; set; }
        public Int64 TransactionID { get; set; }
        public DateTime LocalTime { get; set; }
        public string SourceSort { get; set; }

        public int AreaCode { get; set; }

        public int Priority { get; set; }

        public string ConditionName { get; set; }

        public string Block { get; set; }

        public string Description { get; set; }

        public string LocationTagName { get; set; }

        public string SourceEntityName { get; set; }

        public QueryEventValues()
        {
            //初始化所有字段
            this.Action = "";
            this.Source = "";
            //默认初始是过程报警，当最初初始状态未查到数据时，默认服务器启动时为过程报警
            this.Category = 7;
            this.TransactionID = -1;
            this.LocalTime = DateTime.Now;
            this.SourceSort = "";
            this.AreaCode = -1;
            this.Priority = -1;
            this.ConditionName = "";
            this.Block = "";
            this.Description = "";
            this.LocationTagName ="";
            this.SourceEntityName = "";
        }

    }
}
